%读取13点的数据
load("yantian402\2024年配变时序数据.mat","result2");
all_load_data=result2;
clear result2
end_date=max(all_load_data.Date);
begin_date=min(all_load_data.Date);
sample_duration=duration(24,0,0);
shift_duration=duration(13,0,0);
zero_clock=dateshift(begin_date,'start','day');
sample_ticks=zero_clock+shift_duration:sample_duration:end_date;
idx=ismember(all_load_data.Date,sample_ticks);
needed_curve=all_load_data(idx,:);
sample_ticks=sort(unique(needed_curve.Date),"ascend");
save('curve_at_13.mat','needed_curve',"sample_ticks");

